﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Microsoft.Xna.Framework
{
    public static class VectorHelp
    {
        /// <summary>
        /// 判断某个点是否在一个矩形范围内
        /// </summary>
        /// <param name="point">目标点</param>
        /// <param name="objRect">目标矩形</param>
        /// <returns></returns>
        public static bool IsPointInTarget(Vector2 point, Rectangle objRect)
        {
            return point.X > objRect.Left && point.X < objRect.Right && point.Y > objRect.Top && point.Y < objRect.Bottom;
        }
    }
}
